package com.terren.statistic.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.statistic.db.basic.BasicServiceSupportImpl;
import com.terren.statistic.db.entity.EventTopic;
import com.terren.statistic.db.entity.EventTopicKeyword;
import com.terren.statistic.db.service.EventTopicService;



@Service("eventTopicService")
public class EventTopicServiceImpl extends BasicServiceSupportImpl implements EventTopicService{
	
	private final String SQL_MAPPER = "eventTopicMapper.";

	@Override
	public List<EventTopic> getTopicList(EventTopic param) throws Exception {
		
		return basicDao.findForList(SQL_MAPPER+"getTopicList", param);
	}

	@Override
	public List<EventTopicKeyword> getTopicKeywordList(EventTopicKeyword param) throws Exception {
		
		return basicDao.findForList(SQL_MAPPER+"getTopicKeywordList", param);
	}

	@Override
	public void updateTopicStatus(EventTopic param) throws Exception {
		
		basicDao.save(SQL_MAPPER+"updateTopicStatus", param);	
	}

	@Override
	public void updateTopicKeywordStatus(EventTopicKeyword param) throws Exception {
		
		basicDao.save(SQL_MAPPER+"updateTopicKeywordStatus", param);	
	}

}